package com.linjiahao.nettyTwo.handler;

import io.netty.channel.group.ChannelGroup;
import io.netty.channel.group.DefaultChannelGroup;
import io.netty.util.concurrent.GlobalEventExecutor;

/**
 * @ClassName ChannelHandlerPool
 * @Description: netty通道映射
 * @Author linjiahao
 * @Date 23/12/2021
 **/
public class ChannelHandlerPool {

    //channelGroup通道组
    public static ChannelGroup channelGroup = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);

    //可以存储userId与ChannelId的映射表
    public static String channelUserKey = "netty:user:channel";

    //离线消息key
    public static String userMessageKey = "netty:user:message";
}
